<?php echo $this->form ;?>

<?php if($this->results) : ?>
<hr>
Results for:
<form action="delete" method="POST">
<table width="650" border="1">
<tr>
    <th>Thumb</th>
    <th>ID</th>
    <th>Title & Description</th>
    <th>Select</th>
    
</tr>

<?php foreach ($this->results as $date => $duplicates): ?>
<tr>
    <td colspan="4">Duplicated attribute: <?php echo $date ?></td>
</tr>

<?php foreach($duplicates as $photo) : ?>
<tr>
    <td><?php if($photo['thumbnail']) : ?><img src="<?php echo $this->escape($photo['thumbnail']);?>"/><?php endif; ?></td>
    <td><?php if($photo['id']) : ?><a target="_blank" href="<?php echo $this->escape($photo['url']);?>"><?php echo $this->escape($photo['id']);?><?php endif; ?></a></td>  
    <td><b><?php echo $this->escape($photo['title']);?></b><br/>
    <?php echo $this->escape($photo['description']);?></td> 
    <td><?php if($photo['id']) : ?><input type="checkbox" name="<?php echo $this->escape($photo['id']);?>"><?php endif; ?></td>
    

</tr>
    <?php endforeach; ?>
<?php endforeach; ?>
</table>

<br/>
<input type="submit" name="submit" id="submitbutton" value="Delete Selected">
<br/>Deletion requires Flickr authentication. You may be redirected to Flickr.com to grant FlickrOCD access to delete your files.
</form>
<?php endif; ?>